<!DOCTYPE html>
<html lang="en" >
<head>
    <meta charset="UTF-8">
    <title>多页面程序</title>
    <script type="text/javascript" src="../js/angular.js"></script>
</head>
<body ng-app = "app">

<div ng-controller="stuc">
    {{"hello"}}
    <ul>
        <li ng-repeat="stu in data">
            {{stu.name}} {{stu.age}}
        </li>
    </ul>
</div>
<script type="text/javascript">

    var app = angular.module("app",[]);
    app.controller("stuc",function ($scope) {
        $scope.data=[
            {name:"asd",age:"123"},
            {name:"asds",age:"1232"},
            {name:"asdd",age:"1232"},
        ];
    })
</script>
</body>
</html>